package mutil.thread;


/**
 * Created by luoqifei on 17-5-24.
 */
public class Calculator implements Runnable {
    private int number;
    public Calculator(int number){
        this.number = number;
    }
    public void run() {
        for (int i=0;i<10;i++) {
            System.out.printf("%s: %sd = %d \n",Thread.currentThread().getName(),i,i*number);
        }
    }
}
